<template>
  <div id="app">
    <div class="navbar navbar-dark bg-dark">
      <a class="navbar-brand">News</a>
      <!-- <form class="form-inline">
        <input class="form-control mr-2" type="search" placeholder="Search" aria-label="Search">
        <button class="btn btn-outline-success ml-2" type="submit">Search</button>
      </form> -->
    </div>
    <div class="body">
      <menu-component class="left-menu"></menu-component>
      <div class="content-body">
        <router-view></router-view>
      </div>
    </div>


  </div>
</template>

<script>
import MenuComponent from '@/common/Menu/index.vue'

export default {
  name: 'App',
  components: {
    MenuComponent
  }
}
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100vh;
  display: flex;
  flex-direction: column;

  .navbar {
    background-color: #343a40;
    padding-left: 10px;
    padding-right: 10px;

    .form-inline {
      display: flex;

      input, button {

      }
    }
  }

  .body {
    display: flex;
    height: 100%;

    .left-menu {
      width: 200px;
      border-right: 1px solid rgb(214, 212, 212);
      box-shadow: inset 1px -7px 10px #d7d5d5;
    }

    .content-body {
      flex: 1;
      padding: 10px 25px;
      overflow-y: auto;
    }
  }
}

.app-line-icon {
  &:before {
    content: "";
    border-bottom: 1px solid black;
    text-transform: none;
    line-height: 1;
    display: inline-block;
    width: 8px;
    transform: translateY(-4px);
  }
}
</style>
